#ifndef __BALANCECAR_SET_H
#define __BALANCECAR_SET_H

#include "Motor.h"
#include "Encoder.h"
#include "PWM.h"
#include "PID.h"

// 声明为外部变量（不分配内存）
extern PWM_Channel_t PWM_Channels[];
extern const uint8_t PWM_CHANNEL_COUNT;

extern Encoder_t Encoders[];
extern const uint8_t ENCODER_COUNT;

extern MotorCtrl_t MotorCtrls[];
extern const uint8_t MOTOR_CTRL_COUNT;

extern PID_t LeftPID[];
extern PID_t RightPID[];

#endif
